package com.kunya.product.dao.specification;

import com.kunya.product.po.Specification;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SpecificationMapper {
    int deleteByPrimaryKey(@Param("specificationId")Long specificationId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record")Specification record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record")Specification record,@Param("table_prefix") String table_prefix);

    Specification selectByPrimaryKey(@Param("specificationId")Long specificationId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record")Specification record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record")Specification record,@Param("table_prefix") String table_prefix);

    /**
     * 查询分类规格名称列表
     * @param table_prefix
     * @return
     */
    List<Map<String,Object>> seleteSpecification(@Param("table_prefix") String table_prefix);
}